const fs = require("fs")
const path = require("path")
const buildPublicDir = path.join(__dirname, "./build/public")
const distDir = path.join(__dirname, "./dist")
const buildServiceDir = path.join(__dirname, "./build/server")
const ServiceDir = path.join(__dirname, "./src/server")
if (fs.existsSync(buildPublicDir)) {
    fs.rmSync(buildPublicDir, { recursive: true })
}
fs.cpSync(distDir, buildPublicDir, { recursive: true })
fs.cpSync(ServiceDir, buildServiceDir, { recursive: true })